package com.example.jpandroidtest;

import com.jpandroid.annotations.Primarykey;
import com.jpandroid.annotations.Table;
import com.jpandroid.entity.DomainEntity;
import com.jpandroid.types.GenerationType;

@Table("City")
public class City extends DomainEntity<Integer>
{
	@Primarykey(name = "id", strategy = GenerationType.AUTO_INCREMENT)
	private Integer id;
	
	private String name;
	
	private String street;
	
	private Integer numeber;
	
	public City()
	{
	}

	public City(String name, String street, Integer numeber)
	{
		this.name = name;
		this.street = street;
		this.numeber = numeber;
	}

	@Override
	public Integer getId()
	{
		return id;
	}

	@Override
	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getStreet()
	{
		return street;
	}

	public void setStreet(String street)
	{
		this.street = street;
	}

	public Integer getNumeber()
	{
		return numeber;
	}

	public void setNumeber(Integer numeber)
	{
		this.numeber = numeber;
	}
}
